<?php

/**
 * 
 *
 * Copyright (c) 2013-2014 
 *
 * Author: Mr.Lee <675049572@qq.com>
 *
 * Date: 2013-02-17 16:22:17 Mr.Lee $
 */

if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}

require_once 'lev_enter.php';//print_r($_G);

if ($_G['uid'] <=0) showmessage('Login...', '', array(), array('login'=>TRUE));

//$_groups = unserialize($_PLG['groups']);
//if (!$_groups || !in_array($_G['groupid'], $_groups)) showmessage($lev_lang['errtx']);

$m = intval($_GET['m']);

$myinfo = DB::fetch_first("SELECT * FROM ".DB::table('lev_bank_user')." WHERE uid={$_G['uid']}");

$settings = (array)unserialize($myinfo['settings']);

$allbanks = lev_class::banks();

$murl = 'home.php?mod=spacecp&ac=plugin&op=credit&id=levbank:levbank&m=';

$score = DB::fetch_first("SELECT * FROM ".DB::table('common_member_count')." WHERE uid={$_G['uid']}");

$duihuan = lev_class::duihuan();
$mymoney = sprintf('%0.2f', $score['extcredits'.$_PLG['scoretype']] / $duihuan);

if (!$m) {
	if (is_numeric($_GET['sltss'])){
		$_sq = "status='{$_GET['sltss']}'";
	}else {
		$_sq = "1";
	}
	$orders = lev_base::levpages('lev_bank_log', $_sq.' ORDER BY id DESC', 10, 0, $murl);
}









